package com.itheima.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Demo5 {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>(List.of("zhangsan,23","lisi,24","wangwu,25"));
         list.stream().filter(s->{
             String s1 = s.split(",")[0];
             String s2 = s.split(",")[1];
             int i = Integer.parseInt(s2);
             return  i>23;

         })/*.collect(Collectors.toMap()*/;



    }
}
